﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010B1 RID: 4273
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SceneCastSkillCsReq : IMessage<SceneCastSkillCsReq>, IMessage, IEquatable<SceneCastSkillCsReq>, IDeepCloneable<SceneCastSkillCsReq>, IBufferMessage
	{
		// Token: 0x170035F6 RID: 13814
		// (get) Token: 0x0600BEF1 RID: 48881 RVA: 0x0020344B File Offset: 0x0020164B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SceneCastSkillCsReq> Parser
		{
			get
			{
				return SceneCastSkillCsReq._parser;
			}
		}

		// Token: 0x170035F7 RID: 13815
		// (get) Token: 0x0600BEF2 RID: 48882 RVA: 0x00203452 File Offset: 0x00201652
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SceneCastSkillCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170035F8 RID: 13816
		// (get) Token: 0x0600BEF3 RID: 48883 RVA: 0x00203464 File Offset: 0x00201664
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SceneCastSkillCsReq.Descriptor;
			}
		}

		// Token: 0x0600BEF4 RID: 48884 RVA: 0x0020346C File Offset: 0x0020166C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillCsReq()
		{
		}

		// Token: 0x0600BEF5 RID: 48885 RVA: 0x002034C4 File Offset: 0x002016C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillCsReq(SceneCastSkillCsReq other) : this()
		{
			this.skillIndex_ = other.skillIndex_;
			this.attackedByEntityId_ = other.attackedByEntityId_;
			this.castEntityId_ = other.castEntityId_;
			this.assistMonsterEntityIdList_ = other.assistMonsterEntityIdList_.Clone();
			this.skillExtraTags_ = other.skillExtraTags_.Clone();
			this.hitTargetEntityIdList_ = other.hitTargetEntityIdList_.Clone();
			this.mazeAbilityStr_ = other.mazeAbilityStr_;
			this.assistMonsterEntityInfo_ = other.assistMonsterEntityInfo_.Clone();
			this.targetMotion_ = ((other.targetMotion_ != null) ? other.targetMotion_.Clone() : null);
			this.eEFMBBCKMNP_ = other.eEFMBBCKMNP_;
			this.dynamicValues_ = other.dynamicValues_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600BEF6 RID: 48886 RVA: 0x00203595 File Offset: 0x00201795
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneCastSkillCsReq Clone()
		{
			return new SceneCastSkillCsReq(this);
		}

		// Token: 0x170035F9 RID: 13817
		// (get) Token: 0x0600BEF7 RID: 48887 RVA: 0x0020359D File Offset: 0x0020179D
		// (set) Token: 0x0600BEF8 RID: 48888 RVA: 0x002035A5 File Offset: 0x002017A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint SkillIndex
		{
			get
			{
				return this.skillIndex_;
			}
			set
			{
				this.skillIndex_ = value;
			}
		}

		// Token: 0x170035FA RID: 13818
		// (get) Token: 0x0600BEF9 RID: 48889 RVA: 0x002035AE File Offset: 0x002017AE
		// (set) Token: 0x0600BEFA RID: 48890 RVA: 0x002035B6 File Offset: 0x002017B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AttackedByEntityId
		{
			get
			{
				return this.attackedByEntityId_;
			}
			set
			{
				this.attackedByEntityId_ = value;
			}
		}

		// Token: 0x170035FB RID: 13819
		// (get) Token: 0x0600BEFB RID: 48891 RVA: 0x002035BF File Offset: 0x002017BF
		// (set) Token: 0x0600BEFC RID: 48892 RVA: 0x002035C7 File Offset: 0x002017C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CastEntityId
		{
			get
			{
				return this.castEntityId_;
			}
			set
			{
				this.castEntityId_ = value;
			}
		}

		// Token: 0x170035FC RID: 13820
		// (get) Token: 0x0600BEFD RID: 48893 RVA: 0x002035D0 File Offset: 0x002017D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AssistMonsterEntityIdList
		{
			get
			{
				return this.assistMonsterEntityIdList_;
			}
		}

		// Token: 0x170035FD RID: 13821
		// (get) Token: 0x0600BEFE RID: 48894 RVA: 0x002035D8 File Offset: 0x002017D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<SkillExtraTag> SkillExtraTags
		{
			get
			{
				return this.skillExtraTags_;
			}
		}

		// Token: 0x170035FE RID: 13822
		// (get) Token: 0x0600BEFF RID: 48895 RVA: 0x002035E0 File Offset: 0x002017E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> HitTargetEntityIdList
		{
			get
			{
				return this.hitTargetEntityIdList_;
			}
		}

		// Token: 0x170035FF RID: 13823
		// (get) Token: 0x0600BF00 RID: 48896 RVA: 0x002035E8 File Offset: 0x002017E8
		// (set) Token: 0x0600BF01 RID: 48897 RVA: 0x002035F0 File Offset: 0x002017F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string MazeAbilityStr
		{
			get
			{
				return this.mazeAbilityStr_;
			}
			set
			{
				this.mazeAbilityStr_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x17003600 RID: 13824
		// (get) Token: 0x0600BF02 RID: 48898 RVA: 0x00203603 File Offset: 0x00201803
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<AssistMonsterEntityInfo> AssistMonsterEntityInfo
		{
			get
			{
				return this.assistMonsterEntityInfo_;
			}
		}

		// Token: 0x17003601 RID: 13825
		// (get) Token: 0x0600BF03 RID: 48899 RVA: 0x0020360B File Offset: 0x0020180B
		// (set) Token: 0x0600BF04 RID: 48900 RVA: 0x00203613 File Offset: 0x00201813
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MotionInfo TargetMotion
		{
			get
			{
				return this.targetMotion_;
			}
			set
			{
				this.targetMotion_ = value;
			}
		}

		// Token: 0x17003602 RID: 13826
		// (get) Token: 0x0600BF05 RID: 48901 RVA: 0x0020361C File Offset: 0x0020181C
		// (set) Token: 0x0600BF06 RID: 48902 RVA: 0x00203624 File Offset: 0x00201824
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EEFMBBCKMNP
		{
			get
			{
				return this.eEFMBBCKMNP_;
			}
			set
			{
				this.eEFMBBCKMNP_ = value;
			}
		}

		// Token: 0x17003603 RID: 13827
		// (get) Token: 0x0600BF07 RID: 48903 RVA: 0x0020362D File Offset: 0x0020182D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<INNHIDEAEDP> DynamicValues
		{
			get
			{
				return this.dynamicValues_;
			}
		}

		// Token: 0x0600BF08 RID: 48904 RVA: 0x00203635 File Offset: 0x00201835
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SceneCastSkillCsReq);
		}

		// Token: 0x0600BF09 RID: 48905 RVA: 0x00203644 File Offset: 0x00201844
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SceneCastSkillCsReq other)
		{
			return other != null && (other == this || (this.SkillIndex == other.SkillIndex && this.AttackedByEntityId == other.AttackedByEntityId && this.CastEntityId == other.CastEntityId && this.assistMonsterEntityIdList_.Equals(other.assistMonsterEntityIdList_) && this.skillExtraTags_.Equals(other.skillExtraTags_) && this.hitTargetEntityIdList_.Equals(other.hitTargetEntityIdList_) && !(this.MazeAbilityStr != other.MazeAbilityStr) && this.assistMonsterEntityInfo_.Equals(other.assistMonsterEntityInfo_) && object.Equals(this.TargetMotion, other.TargetMotion) && this.EEFMBBCKMNP == other.EEFMBBCKMNP && this.dynamicValues_.Equals(other.dynamicValues_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600BF0A RID: 48906 RVA: 0x00203740 File Offset: 0x00201940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.SkillIndex != 0U)
			{
				num ^= this.SkillIndex.GetHashCode();
			}
			if (this.AttackedByEntityId != 0U)
			{
				num ^= this.AttackedByEntityId.GetHashCode();
			}
			if (this.CastEntityId != 0U)
			{
				num ^= this.CastEntityId.GetHashCode();
			}
			num ^= this.assistMonsterEntityIdList_.GetHashCode();
			num ^= this.skillExtraTags_.GetHashCode();
			num ^= this.hitTargetEntityIdList_.GetHashCode();
			if (this.MazeAbilityStr.Length != 0)
			{
				num ^= this.MazeAbilityStr.GetHashCode();
			}
			num ^= this.assistMonsterEntityInfo_.GetHashCode();
			if (this.targetMotion_ != null)
			{
				num ^= this.TargetMotion.GetHashCode();
			}
			if (this.EEFMBBCKMNP != 0U)
			{
				num ^= this.EEFMBBCKMNP.GetHashCode();
			}
			num ^= this.dynamicValues_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600BF0B RID: 48907 RVA: 0x00203841 File Offset: 0x00201A41
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600BF0C RID: 48908 RVA: 0x00203849 File Offset: 0x00201A49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600BF0D RID: 48909 RVA: 0x00203854 File Offset: 0x00201A54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.EEFMBBCKMNP != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.EEFMBBCKMNP);
			}
			this.assistMonsterEntityIdList_.WriteTo(ref output, SceneCastSkillCsReq._repeated_assistMonsterEntityIdList_codec);
			this.assistMonsterEntityInfo_.WriteTo(ref output, SceneCastSkillCsReq._repeated_assistMonsterEntityInfo_codec);
			this.skillExtraTags_.WriteTo(ref output, SceneCastSkillCsReq._repeated_skillExtraTags_codec);
			this.hitTargetEntityIdList_.WriteTo(ref output, SceneCastSkillCsReq._repeated_hitTargetEntityIdList_codec);
			if (this.AttackedByEntityId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.AttackedByEntityId);
			}
			if (this.MazeAbilityStr.Length != 0)
			{
				output.WriteRawTag(82);
				output.WriteString(this.MazeAbilityStr);
			}
			if (this.SkillIndex != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.SkillIndex);
			}
			this.dynamicValues_.WriteTo(ref output, SceneCastSkillCsReq._repeated_dynamicValues_codec);
			if (this.CastEntityId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.CastEntityId);
			}
			if (this.targetMotion_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.TargetMotion);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600BF0E RID: 48910 RVA: 0x00203978 File Offset: 0x00201B78
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.SkillIndex != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.SkillIndex);
			}
			if (this.AttackedByEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AttackedByEntityId);
			}
			if (this.CastEntityId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CastEntityId);
			}
			num += this.assistMonsterEntityIdList_.CalculateSize(SceneCastSkillCsReq._repeated_assistMonsterEntityIdList_codec);
			num += this.skillExtraTags_.CalculateSize(SceneCastSkillCsReq._repeated_skillExtraTags_codec);
			num += this.hitTargetEntityIdList_.CalculateSize(SceneCastSkillCsReq._repeated_hitTargetEntityIdList_codec);
			if (this.MazeAbilityStr.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.MazeAbilityStr);
			}
			num += this.assistMonsterEntityInfo_.CalculateSize(SceneCastSkillCsReq._repeated_assistMonsterEntityInfo_codec);
			if (this.targetMotion_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.TargetMotion);
			}
			if (this.EEFMBBCKMNP != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EEFMBBCKMNP);
			}
			num += this.dynamicValues_.CalculateSize(SceneCastSkillCsReq._repeated_dynamicValues_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600BF0F RID: 48911 RVA: 0x00203A94 File Offset: 0x00201C94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SceneCastSkillCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.SkillIndex != 0U)
			{
				this.SkillIndex = other.SkillIndex;
			}
			if (other.AttackedByEntityId != 0U)
			{
				this.AttackedByEntityId = other.AttackedByEntityId;
			}
			if (other.CastEntityId != 0U)
			{
				this.CastEntityId = other.CastEntityId;
			}
			this.assistMonsterEntityIdList_.Add(other.assistMonsterEntityIdList_);
			this.skillExtraTags_.Add(other.skillExtraTags_);
			this.hitTargetEntityIdList_.Add(other.hitTargetEntityIdList_);
			if (other.MazeAbilityStr.Length != 0)
			{
				this.MazeAbilityStr = other.MazeAbilityStr;
			}
			this.assistMonsterEntityInfo_.Add(other.assistMonsterEntityInfo_);
			if (other.targetMotion_ != null)
			{
				if (this.targetMotion_ == null)
				{
					this.TargetMotion = new MotionInfo();
				}
				this.TargetMotion.MergeFrom(other.TargetMotion);
			}
			if (other.EEFMBBCKMNP != 0U)
			{
				this.EEFMBBCKMNP = other.EEFMBBCKMNP;
			}
			this.dynamicValues_.Add(other.dynamicValues_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600BF10 RID: 48912 RVA: 0x00203BA6 File Offset: 0x00201DA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600BF11 RID: 48913 RVA: 0x00203BB0 File Offset: 0x00201DB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 56U)
				{
					if (num > 18U)
					{
						if (num <= 32U)
						{
							if (num == 26U)
							{
								this.assistMonsterEntityInfo_.AddEntriesFrom(ref input, SceneCastSkillCsReq._repeated_assistMonsterEntityInfo_codec);
								continue;
							}
							if (num != 32U)
							{
								goto IL_97;
							}
						}
						else if (num != 34U)
						{
							if (num != 56U)
							{
								goto IL_97;
							}
							goto IL_FE;
						}
						this.skillExtraTags_.AddEntriesFrom(ref input, SceneCastSkillCsReq._repeated_skillExtraTags_codec);
						continue;
					}
					if (num == 8U)
					{
						this.EEFMBBCKMNP = input.ReadUInt32();
						continue;
					}
					if (num == 16U || num == 18U)
					{
						this.assistMonsterEntityIdList_.AddEntriesFrom(ref input, SceneCastSkillCsReq._repeated_assistMonsterEntityIdList_codec);
						continue;
					}
				}
				else if (num <= 82U)
				{
					if (num == 58U)
					{
						goto IL_FE;
					}
					if (num == 64U)
					{
						this.AttackedByEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 82U)
					{
						this.MazeAbilityStr = input.ReadString();
						continue;
					}
				}
				else if (num <= 98U)
				{
					if (num == 88U)
					{
						this.SkillIndex = input.ReadUInt32();
						continue;
					}
					if (num == 98U)
					{
						this.dynamicValues_.AddEntriesFrom(ref input, SceneCastSkillCsReq._repeated_dynamicValues_codec);
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.CastEntityId = input.ReadUInt32();
						continue;
					}
					if (num == 114U)
					{
						if (this.targetMotion_ == null)
						{
							this.TargetMotion = new MotionInfo();
						}
						input.ReadMessage(this.TargetMotion);
						continue;
					}
				}
				IL_97:
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				continue;
				IL_FE:
				this.hitTargetEntityIdList_.AddEntriesFrom(ref input, SceneCastSkillCsReq._repeated_hitTargetEntityIdList_codec);
			}
		}

		// Token: 0x04004CE0 RID: 19680
		private static readonly MessageParser<SceneCastSkillCsReq> _parser = new MessageParser<SceneCastSkillCsReq>(() => new SceneCastSkillCsReq());

		// Token: 0x04004CE1 RID: 19681
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004CE2 RID: 19682
		public const int SkillIndexFieldNumber = 11;

		// Token: 0x04004CE3 RID: 19683
		private uint skillIndex_;

		// Token: 0x04004CE4 RID: 19684
		public const int AttackedByEntityIdFieldNumber = 8;

		// Token: 0x04004CE5 RID: 19685
		private uint attackedByEntityId_;

		// Token: 0x04004CE6 RID: 19686
		public const int CastEntityIdFieldNumber = 13;

		// Token: 0x04004CE7 RID: 19687
		private uint castEntityId_;

		// Token: 0x04004CE8 RID: 19688
		public const int AssistMonsterEntityIdListFieldNumber = 2;

		// Token: 0x04004CE9 RID: 19689
		private static readonly FieldCodec<uint> _repeated_assistMonsterEntityIdList_codec = FieldCodec.ForUInt32(18U);

		// Token: 0x04004CEA RID: 19690
		private readonly RepeatedField<uint> assistMonsterEntityIdList_ = new RepeatedField<uint>();

		// Token: 0x04004CEB RID: 19691
		public const int SkillExtraTagsFieldNumber = 4;

		// Token: 0x04004CEC RID: 19692
		private static readonly FieldCodec<SkillExtraTag> _repeated_skillExtraTags_codec = FieldCodec.ForEnum<SkillExtraTag>(34U, (SkillExtraTag x) => (int)x, (int x) => (SkillExtraTag)x);

		// Token: 0x04004CED RID: 19693
		private readonly RepeatedField<SkillExtraTag> skillExtraTags_ = new RepeatedField<SkillExtraTag>();

		// Token: 0x04004CEE RID: 19694
		public const int HitTargetEntityIdListFieldNumber = 7;

		// Token: 0x04004CEF RID: 19695
		private static readonly FieldCodec<uint> _repeated_hitTargetEntityIdList_codec = FieldCodec.ForUInt32(58U);

		// Token: 0x04004CF0 RID: 19696
		private readonly RepeatedField<uint> hitTargetEntityIdList_ = new RepeatedField<uint>();

		// Token: 0x04004CF1 RID: 19697
		public const int MazeAbilityStrFieldNumber = 10;

		// Token: 0x04004CF2 RID: 19698
		private string mazeAbilityStr_ = "";

		// Token: 0x04004CF3 RID: 19699
		public const int AssistMonsterEntityInfoFieldNumber = 3;

		// Token: 0x04004CF4 RID: 19700
		private static readonly FieldCodec<AssistMonsterEntityInfo> _repeated_assistMonsterEntityInfo_codec = FieldCodec.ForMessage<AssistMonsterEntityInfo>(26U, EggLink.DanhengServer.Proto.AssistMonsterEntityInfo.Parser);

		// Token: 0x04004CF5 RID: 19701
		private readonly RepeatedField<AssistMonsterEntityInfo> assistMonsterEntityInfo_ = new RepeatedField<AssistMonsterEntityInfo>();

		// Token: 0x04004CF6 RID: 19702
		public const int TargetMotionFieldNumber = 14;

		// Token: 0x04004CF7 RID: 19703
		private MotionInfo targetMotion_;

		// Token: 0x04004CF8 RID: 19704
		public const int EEFMBBCKMNPFieldNumber = 1;

		// Token: 0x04004CF9 RID: 19705
		private uint eEFMBBCKMNP_;

		// Token: 0x04004CFA RID: 19706
		public const int DynamicValuesFieldNumber = 12;

		// Token: 0x04004CFB RID: 19707
		private static readonly FieldCodec<INNHIDEAEDP> _repeated_dynamicValues_codec = FieldCodec.ForMessage<INNHIDEAEDP>(98U, INNHIDEAEDP.Parser);

		// Token: 0x04004CFC RID: 19708
		private readonly RepeatedField<INNHIDEAEDP> dynamicValues_ = new RepeatedField<INNHIDEAEDP>();
	}
}
